package com.zrx.govern.component.easyexcel.starter.feign.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 10100
 * @License: (C) Copyright 2020-2050,  Corporation Limited.
 * @Date: 2020/7/20 14:44
 * @Description: 树
 */
@Data
public class TreeEntity<I, T> implements Serializable {

    private static final long serialVersionUID = 1L;

    protected I id;

    protected I parentId;

    protected List<T> children = new ArrayList<>();

    public TreeEntity() {
    }
}
